package com.red.basic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.red.common.annotation.Excel;
import com.red.common.core.domain.BaseEntity;

/**
 * 客户管理对象 red_custom
 * 
 * @author bug2222
 * @date 2024-11-09
 */
public class RedCustom extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 姓名 */
    @Excel(name = "姓名")
    private String name;

    /** 手机 */
    @Excel(name = "手机")
    private String mobile;

    /** 办公电话 */
    @Excel(name = "办公电话")
    private String telephone;

    /** 客户区域 */
    @Excel(name = "客户区域")
    private String region;

    /** 详细地址 */
    @Excel(name = "详细地址")
    private String address;

    /** 类型 1客户 2供 应商 */
    @Excel(name = "类型")
    private Long type;

    /** 所属文件夹id */
    @Excel(name = "所属文件夹")
    private Long folderId;

    /** 最后下单时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "最后下单时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastOrderTime;

    /** 所属业务员 */
    @Excel(name = "所属业务员")
    private Long userId;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setMobile(String mobile) 
    {
        this.mobile = mobile;
    }

    public String getMobile() 
    {
        return mobile;
    }
    public void setTelephone(String telephone) 
    {
        this.telephone = telephone;
    }

    public String getTelephone() 
    {
        return telephone;
    }
    public void setRegion(String region) 
    {
        this.region = region;
    }

    public String getRegion() 
    {
        return region;
    }
    public void setAddress(String address) 
    {
        this.address = address;
    }

    public String getAddress() 
    {
        return address;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setFolderId(Long folderId)
    {
        this.folderId = folderId;
    }

    public Long getFolderId()
    {
        return folderId;
    }
    public void setLastOrderTime(Date lastOrderTime) 
    {
        this.lastOrderTime = lastOrderTime;
    }

    public Date getLastOrderTime() 
    {
        return lastOrderTime;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("mobile", getMobile())
            .append("telephone", getTelephone())
            .append("region", getRegion())
            .append("address", getAddress())
            .append("type", getType())
            .append("folderId", getFolderId())
            .append("lastOrderTime", getLastOrderTime())
            .append("userId", getUserId())
            .toString();
    }
}
